import pymongo

myclient = pymongo.MongoClient("mongodb://localhost:27017/")
mydb_orders = myclient["binancedb"]["orders"]
mydb_open_price = myclient["binancedb"]["open_price"]

mydb_orders.delete_many({'uid':73, 'positionSide': 'SHORT'})

mydb_orders.delete_many({})
mydb_open_price.delete_many({})


for data in mydb_orders.find():
    print(data)

# print(mydb_orders.find({"uid":15}))

# myclient = pymongo.MongoClient("mongodb://localhost:27017/")
# mydb = myclient["binancedb"]
# mydb_orders = mydb["alpha"]
# for data in mydb_orders.find():
#     print(data)
